package com.fxu.tpl.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fxu.framework.core.redis.MybatisRedis;
import com.fxu.tpl.entity.TestItem;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/***
 * <p>fxu</p>
 * 测试表：[test_like]的数据库操作接口
 * @author fxu
 * @version 2021-03-16
 ***/
@Component
@DS("master_gen")
@CacheNamespace(implementation = MybatisRedis.class, eviction = MybatisRedis.class)
public interface TestItemMapper extends BaseMapper<TestItem> {

    @Select("SELECT a.* FROM test_item as a WHERE a.id = #{id}")
    TestItem selectById(Long id);
}
